import request from '@/utils/request'
import { genParam } from '@/utils/encrypt'

export function getList(params) {
  genParam(params)

  return request({
    url: '/admin/tbkorder/list',
    method: 'get',
    params
  })
}

export function editOrder(param) {
  const params = {
    sn: param.sn
  }
  const paramStr = genParam(params)

  return request({
    url: '/admin/tbkorder/' + param.id + '/edit',
    method: 'put',
    data: paramStr
  })
}
